//
//  LSRThemeItem.m
//  BaiSiProject
//
//  Created by lshenrong on 16/7/12.
//  Copyright © 2016年 lshenrong. All rights reserved.
//

#import "LSRThemeItem.h"
#import <MJExtension/MJExtension.h>
#import "LSRCommentItem.h"
#import "LSRUserItem.h"

@implementation LSRThemeItem
-(void)setTop_cmt:(NSArray *)top_cmt
{
    _top_cmt = top_cmt;
    
    if (top_cmt.count) {
        
        //拿到数组里面的字典
        NSDictionary *dict = top_cmt.firstObject;
        
     
       self.userItem= [LSRUserItem mj_objectWithKeyValues: top_cmt.firstObject[@"user"]];
        //字典转模型
        
      self.commentItem = [LSRCommentItem mj_objectWithKeyValues:dict];
    
      self.commentItem.userItem=self.userItem;
        
    }


}

@end
